
import gnupg
import os



gpg = gnupg.GPG(binary='C:/Program Files (x86)/GnuPG/bin/gpg.exe',
                homedir='C:/Users/HB/.gnupg',
                keyring='pubring.gpg',
                secring='secring.gpg')

def run(cmd):
    f=os.system(cmd)
    #f.read():
    print(f)
cmd="gpg -ab \"d:/hubo/python/hash/gpg.py\""
#run(cmd)
cmd="gpg --verify \"d:/hubo/python/hash/gpg.py.asc\""
run(cmd)
